package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 批量增加口味分类
     * @param flavors
     */
    void insertBatch(List<DishFlavor> flavors);

    /**
     * 批量删除菜品口味
     * @param ids
     */
    void deleteDishFlavors(List<Long> ids);

    /**
     * 删除菜品口味
     */
    void deleteDishFlavor(Long id);


    /**
     * 根据 ID 查询菜品口味
     * @param id
     */
    List<DishFlavor> selectFlavor(Long id);

}
